package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.ThemeCommend;
import cn.wolfcode.luowowo.article.mapper.ThemeCommendMapper;
import cn.wolfcode.luowowo.article.service.IThemeCommendService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class ThemeCommendServiceImpl implements IThemeCommendService {
    @Autowired
    private ThemeCommendMapper themeCommendMapper;
    public List<ThemeCommend> list() {
        return themeCommendMapper.list();
    }

    public int getCount() {
        return themeCommendMapper.getCount();
    }

    public ThemeCommend selectByName(String name) {
        return themeCommendMapper.selectByName(name);
    }
}
